package main

import (
	"github.com/nsqio/go-nsq"
	"log"
)

func main() {

	conn := "39.100.58.10:4150"
	config := nsq.NewConfig()
	w, err := nsq.NewProducer(conn, config)

	if err != nil {
		log.Panic(err)
	}

	chars := []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZ")

	err = w.Publish("test", chars)
	if err != nil {
		log.Panic(err)
	}
	w.Stop()

}
